package com.cw.japp

class UserChatSettings {

	Boolean allowUserImages
	Integer textSize
	String textColor
	String textFont
	Boolean showFont
	Boolean autoReply
	byte[] autoReplyMsg
	Integer status
	Date lastModifiedDate
	Date createdDate
	User user

	static belongsTo = [User]

	static mapping = {
		id column: "chat_setting_id"
		version false
	}

	static constraints = {
		allowUserImages nullable: true
		textSize nullable: true
		textColor nullable: true, maxSize: 45
		textFont nullable: true, maxSize: 45
		showFont nullable: true
		autoReply nullable: true
		autoReplyMsg nullable: true
		status nullable: true
		lastModifiedDate nullable: true
		createdDate nullable: true
	}
}
